package br.com.pedido.www;

public class OrdemDePagamentoServicoPortTypeProxy implements br.com.pedido.www.OrdemDePagamentoServicoPortType {
  private String _endpoint = null;
  private br.com.pedido.www.OrdemDePagamentoServicoPortType ordemDePagamentoServicoPortType = null;
  
  public OrdemDePagamentoServicoPortTypeProxy() {
    _initOrdemDePagamentoServicoPortTypeProxy();
  }
  
  public OrdemDePagamentoServicoPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initOrdemDePagamentoServicoPortTypeProxy();
  }
  
  private void _initOrdemDePagamentoServicoPortTypeProxy() {
    try {
      ordemDePagamentoServicoPortType = (new br.com.pedido.www.OrdemDePagamentoServicoServiceLocator()).getOrdemDePagamentoServicoServicePort();
      if (ordemDePagamentoServicoPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)ordemDePagamentoServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)ordemDePagamentoServicoPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (ordemDePagamentoServicoPortType != null)
      ((javax.xml.rpc.Stub)ordemDePagamentoServicoPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public br.com.pedido.www.OrdemDePagamentoServicoPortType getOrdemDePagamentoServicoPortType() {
    if (ordemDePagamentoServicoPortType == null)
      _initOrdemDePagamentoServicoPortTypeProxy();
    return ordemDePagamentoServicoPortType;
  }
  
  public br.com.pedido.www.OrdemDePagamentoServicoResponse gerarOrdemDePagamento(br.com.pedido.www.OrdemDePagamentoServicoRequest params) throws java.rmi.RemoteException{
    if (ordemDePagamentoServicoPortType == null)
      _initOrdemDePagamentoServicoPortTypeProxy();
    return ordemDePagamentoServicoPortType.gerarOrdemDePagamento(params);
  }
  
  public br.com.pedido.www.ListaOrdemPagamentoBean[] listarOrdemDePagamento(br.com.pedido.www.ListarOrdemDePagamentoServicoRequest params) throws java.rmi.RemoteException{
    if (ordemDePagamentoServicoPortType == null)
      _initOrdemDePagamentoServicoPortTypeProxy();
    return ordemDePagamentoServicoPortType.listarOrdemDePagamento(params);
  }
  
  
}